/*
	File:		SwarmBot.cpp
	Author:		Ben Feldmann
	Purpose:	Class to manage game SwarmBot enemies
*/

#include "SwarmBot.h"
#include "SGD Wrappers/CSGD_TextureManager.h"


SwarmBot::SwarmBot()
{
	SetHealth(125.0f);
	SetDifficulty(1);
	SetX(900);
	SetY(300);
	SetWidth(32);
	SetHeight(32);
	SetTextureID(CSGD_TextureManager::GetInstance()->LoadTexture(_T("Graphics/Dummy Images/swarmEnemy.png")));
}

SwarmBot::~SwarmBot() 
{	
	if(GetTextureID() != -1 )
	{
		CSGD_TextureManager::GetInstance()->UnloadTexture(GetTextureID());
		SetTextureID(-1);
	}
}

void SwarmBot::Update(float elapsed) 
{

}

void SwarmBot::Render() 
{
	if(GetTextureID() != -1)
	{
		CSGD_TextureManager::GetInstance()->Draw(GetTextureID(), int(GetX()), int(GetY()));
	}
}

//bool SwarmBot::CheckCollision(IEntity* base) 
//{
//	throw "Not yet implemented";
//}

void SwarmBot::Attack() 
{
	throw "Not yet implemented";
}